<!--
 * @Author: HeAo
 * @Date: 2021-11-24 20:53:20
 * @LastEditTime: 2021-11-24 21:17:25
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\review\helloworld.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: 0;
    }

    .header {
      height: 80px;
      background-color: aqua;
    }

    .content {
      height: calc(100vh - 80px);
      background-color: coral;
      /* 1.伸缩盒布局 */
      /* display: flex; */
    }

    .left {
      width: 300px;
      height: calc(100% - 80px);
      background-color: darkcyan;
      margin-right: 10px;
      /* 2.浮动布局 */
      /* float: left; */
      /* 3.定位布局 */
      position: absolute;
      left: 0;
      top: 80px;
    }

    .right {
      width: calc(100% - 300px);
      height: calc(100% - 80px);
      background-color: darkkhaki;
      /* margin-left: 300px; */
      /* 3.定位布局 */
      position: absolute;
      right: 0;
      top: 80px;
    }
  </style>
</head>

<body>
  <div class="header"></div>
  <div class="content">
    <div class="left"></div>
    <div class="right"></div>
  </div>
</body>

</html>